package com.pay.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;

import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author Peng
 * @since 2018-12-15
 */
@TableName("t_cash_details")
public class CashDetails implements Serializable {

	private static final long serialVersionUID = 1L;

	@TableField(exist=false)
	private BankDetail bankDetail ; 
	
	@TableField(exist=false)
	private Merchant merchant ;
	
	/**
	 * 提现记录表
	 */
	@TableId(value = "id", type = IdType.AUTO)
	private Integer id;

	/**
	 * 商户id
	 */
	private Integer merid;

	/**
	 * 银行卡id
	 */
	private Integer bankid;

	/**
	 * 提现金额
	 */
	private BigDecimal cashmoney;

	/**
	 * 实际到账
	 */
	private BigDecimal realmoney;

	/**
	 * 创建时间
	 */
	private Date createtime;

	/**
	 * 审核处理时间
	 */
	private Date endtime;

	/**
	 * 审核状态0待审核 1审核通过 2审核驳回
	 */
	private Integer status;

	public BankDetail getBankDetail() {
		return bankDetail;
	}

	public void setBankDetail(BankDetail bankDetail) {
		this.bankDetail = bankDetail;
	}

	public Merchant getMerchant() {
		return merchant;
	}

	public void setMerchant(Merchant merchant) {
		this.merchant = merchant;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getMerid() {
		return merid;
	}

	public void setMerid(Integer merid) {
		this.merid = merid;
	}

	public Integer getBankid() {
		return bankid;
	}

	public void setBankid(Integer bankid) {
		this.bankid = bankid;
	}

	public BigDecimal getCashmoney() {
		return cashmoney;
	}

	public void setCashmoney(BigDecimal cashmoney) {
		this.cashmoney = cashmoney;
	}

	public BigDecimal getRealmoney() {
		return realmoney;
	}

	public void setRealmoney(BigDecimal realmoney) {
		this.realmoney = realmoney;
	}

	public Date getCreatetime() {
		return createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	public Date getEndtime() {
		return endtime;
	}

	public void setEndtime(Date endtime) {
		this.endtime = endtime;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	@Override
	public String toString() {
		return "CashDetails{" +
				"id=" + id +
				", merid=" + merid +
				", bankid=" + bankid +
				", cashmoney=" + cashmoney +
				", realmoney=" + realmoney +
				", createtime=" + createtime +
				", endtime=" + endtime +
				", status=" + status +
				"}";
	}
}
